package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author WenJialu
 * @since 2018-10-28
 */
@TableName("order_invoice")
public class OrderInvoice extends Model<OrderInvoice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("order_no")
    private String orderNo;

    private Long amount;

    /**
     * 1增值税普通发票
            2增值税专用发票
     */
    @TableField("invoice_type")
    private Integer invoiceType;

    /**
     * 1 个人
            2 单位
     */
    @TableField("invoice_title")
    private Integer invoiceTitle;

    private String content;

    @TableField("taxpayer_identity_no")
    private String taxpayerIdentityNo;

    @TableField("bank_account")
    private String bankAccount;

    @TableField("bank_deposit")
    private String bankDeposit;

    @TableField("enterprise_name")
    private String enterpriseName;

    @TableField("enterprise_phone")
    private String enterprisePhone;

    @TableField("personal_name")
    private String personalName;

    @TableField("personal_phone")
    private String personalPhone;

    @TableField("receiver_name")
    private String receiverName;

    @TableField("receiver_phone")
    private String receiverPhone;

    @TableField("receiver_address")
    private String receiverAddress;

    @TableField("create_time")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public OrderInvoice setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getOrderId() {
        return orderId;
    }

    public OrderInvoice setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public OrderInvoice setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public Long getAmount() {
        return amount;
    }

    public OrderInvoice setAmount(Long amount) {
        this.amount = amount;
        return this;
    }
    public Integer getInvoiceType() {
        return invoiceType;
    }

    public OrderInvoice setInvoiceType(Integer invoiceType) {
        this.invoiceType = invoiceType;
        return this;
    }
    public Integer getInvoiceTitle() {
        return invoiceTitle;
    }

    public OrderInvoice setInvoiceTitle(Integer invoiceTitle) {
        this.invoiceTitle = invoiceTitle;
        return this;
    }
    public String getContent() {
        return content;
    }

    public OrderInvoice setContent(String content) {
        this.content = content;
        return this;
    }
    public String getTaxpayerIdentityNo() {
        return taxpayerIdentityNo;
    }

    public OrderInvoice setTaxpayerIdentityNo(String taxpayerIdentityNo) {
        this.taxpayerIdentityNo = taxpayerIdentityNo;
        return this;
    }
    public String getBankAccount() {
        return bankAccount;
    }

    public OrderInvoice setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
        return this;
    }
    public String getBankDeposit() {
        return bankDeposit;
    }

    public OrderInvoice setBankDeposit(String bankDeposit) {
        this.bankDeposit = bankDeposit;
        return this;
    }
    public String getEnterpriseName() {
        return enterpriseName;
    }

    public OrderInvoice setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
        return this;
    }
    public String getEnterprisePhone() {
        return enterprisePhone;
    }

    public OrderInvoice setEnterprisePhone(String enterprisePhone) {
        this.enterprisePhone = enterprisePhone;
        return this;
    }
    public String getPersonalName() {
        return personalName;
    }

    public OrderInvoice setPersonalName(String personalName) {
        this.personalName = personalName;
        return this;
    }
    public String getPersonalPhone() {
        return personalPhone;
    }

    public OrderInvoice setPersonalPhone(String personalPhone) {
        this.personalPhone = personalPhone;
        return this;
    }
    public String getReceiverName() {
        return receiverName;
    }

    public OrderInvoice setReceiverName(String receiverName) {
        this.receiverName = receiverName;
        return this;
    }
    public String getReceiverPhone() {
        return receiverPhone;
    }

    public OrderInvoice setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
        return this;
    }
    public String getReceiverAddress() {
        return receiverAddress;
    }

    public OrderInvoice setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public OrderInvoice setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderInvoice{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", orderNo=" + orderNo +
        ", amount=" + amount +
        ", invoiceType=" + invoiceType +
        ", invoiceTitle=" + invoiceTitle +
        ", content=" + content +
        ", taxpayerIdentityNo=" + taxpayerIdentityNo +
        ", bankAccount=" + bankAccount +
        ", bankDeposit=" + bankDeposit +
        ", enterpriseName=" + enterpriseName +
        ", enterprisePhone=" + enterprisePhone +
        ", personalName=" + personalName +
        ", personalPhone=" + personalPhone +
        ", receiverName=" + receiverName +
        ", receiverPhone=" + receiverPhone +
        ", receiverAddress=" + receiverAddress +
        ", createTime=" + createTime +
        "}";
    }
}
